home *** CD-ROM | disk | FTP | other *** search
/ Teach Your Children: Road Construction Ahead / Teach Your Children: Road Construction Ahead.iso / pc / rca / road.dxr / 00053_bombButScript.ls < prev    next >
Encoding:
Text File  |  1996-07-17  |  678 b   |  21 lines

  1. on mouseDown
  2.   global gLevelObject, gSimObject, gTruckObject, gActorList
  3.   startBuffering()
  4.   if the demoFlag of gSimObject = 0 then
  5.     set the tileNum of the blockedCellObj of gTruckObject to 0
  6.     set the tileType of the blockedCellObj of gTruckObject to #BG
  7.     set x to blockCrossings(the cell of gTruckObject, getLast(the recordedMoveList of gSimObject))
  8.     clearAllActors()
  9.     explode(the clickOn)
  10.     puppetPalette(the framePalette)
  11.     go("Grass")
  12.     go(the frame + 1)
  13.     puppetPalette("SimPal", 60)
  14.     updateStage()
  15.     puppetPalette(0)
  16.     predrawSimButtons(gSimObject)
  17.     go(label("Simulator" & string(the level of gLevelObject)))
  18.   end if
  19.   flushBuffer()
  20. end
  21.